package com.crm.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.crm.dao.GroupDao;
import com.crm.pojo.Group;

@Transactional
public class GroupService {
	private GroupDao groupDao;
	
	
	//get set
	public void setGroupDao(GroupDao groupDao) {
		this.groupDao = groupDao;
	}

	@Transactional(readOnly=true)
	public List<Group> list() {
		return groupDao.findAll();
	}
	
	
}
